import request from '@/utils/request'

export function all(data) {
    return request({
        url: '/registration/all',
        method: 'post',
        data: data
    })
}

export function history(data) {
    return request({
        url: '/registration/history',
        method: 'post',
        data: data
    })
}

export function atHospital(data) {
    return request({
        url: '/registration/at/hospital',
        method: 'post',
        data: data
    })
}

export function selectById(data) {
    return request({
        url: '/registration/id',
        method: 'post',
        data: data
    })
}

export function getCode(data) {
    return request({
        url: '/registration/get/code',
        method: 'post',
        data: data
    })
}

export function add(data) {
    return request({
        url: '/registration/add',
        method: 'post',
        data: data
    })
}